import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import 'mint-ui/lib/style.css'
import { Header,Tabbar, TabItem,Swipe, SwipeItem} from 'mint-ui';
Vue.component(Header.name, Header);
Vue.component(Tabbar.name, Tabbar);
Vue.component(TabItem.name, TabItem);
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);



Vue.filter('setTime', function (timer) {
      var t = new Date(timer);
      var year = t.getFullYear();
      var mount = t.getMonth();
      var day = t.getDate();
      var hours = t.getHours();
      var second = t.getSeconds();
      var minute = t.getMinutes();
      return year + '-' +mount + '-' + day + ' ' + hours + ':' + second + ':' + minute;
})

import axios from 'axios'
Vue.prototype.$axios = axios; 


import VueLazyload from 'vue-lazyload'
Vue.use(VueLazyload);


import VuePreview from 'vue-preview'
Vue.use(VuePreview) 


import { Stepper } from 'vant';
import 'vant/lib/index.css' 
Vue.use(Stepper);


import { Button } from 'vant';

Vue.use(Button);






Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
